package com.hundred.comment.dao.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.hundred.comment.dao.AppCommentDAO;
import com.hundred.comment.dao.dataobject.AppCommentDO;
import com.hundred.item.dao.dataobject.AppItemDO;

public class AppCommentDAOImpl  extends SqlMapClientDaoSupport  implements AppCommentDAO{

	public List<AppCommentDO> getAppCommentList(int tagId) {
		@SuppressWarnings("unchecked")
		List<AppCommentDO> commentList = this.getSqlMapClientTemplate().queryForList("AppComment.queryAppCommentsByTagId", (long)(tagId));
		return commentList;
	}

	public boolean updateCommentInfo(AppCommentDO appCommentDO) {
		// TODO Auto-generated method stub
		return false;
	}

	public AppCommentDO getAppCommentByCommentId(long id) {
		return (AppCommentDO) this.getSqlMapClientTemplate().queryForObject("AppComment.queryAppCommentsById",id);

	}

}
